<?php echo $header; ?>

<div id="content">

  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">&nbsp;</div>
  </div>

  <!-- MIDDLE [START] -->
  <div class="middle">
    
    <!-- homeTopBox [START] --> 
    <div id="cattegoryBox">
      <!-- MAIN CAT. [START] -->
      <?php foreach ($sub_cats as $idx => $cat): ?>  
        <div class="subCatWrapper<?php echo $idx % 3 == 0 && $idx != 0 ? ' lastCat' : ''; ?>">
          <a href="<?php echo $cat['href']; ?>"><img src="<?php echo $cat['pic'] ?>" width="303" height="278" border="0" /></a>
          <span class="catTitle"><?php echo $cat['name'] ?></span>
        </div>
      <?php endforeach; ?>
      <!-- MAIN CAT. [END] -->
    </div>
    <!-- homeTopBox [END] --> 

    <!-- NEW PRODUCTS [START] -->
    <div>  
      <div class="pboxWrapper">
        
      </div>      
    </div>
    <!-- NEW PRODUCTS [END] -->
    
  </div>
  <!-- MIDDLE [END] --> 
  
<!--
  <div class="bottom">
      <div class="left"></div>
      <div class="right"></div>
      <div class="center"></div>
    </div>
-->

  <!--div id="bottomNews">
  <?php foreach ($bottom_news as $v): ?>
    <label><?php echo($v['title']) ?></label>
    <img src="<?php echo($v['thumb']) ?>" alt="<?php echo($v['title']) ?>" />
  <?php endforeach; ?>
  </div-->

  <?php
  /*
  foreach ($modules as $module) {
    echo ${$module['code']};
  }
  */
  ?>
</div>

<?php echo $footer; ?>